<?php

namespace app\admin\controller;

use think\Db;

class OrderReason extends Common
{
    public function index()
    {
        $sou = request()->param();
        $username =input("nickname")?input("nickname"):($sou["nickname"]="");
        $query = Db::name("member_order_reason")
            ->alias("or")
            ->join("member m","m.id=or.member_id")
            ->where("username like '%$username%'")
            ->field(["or.id oid","symbol_cn","contract_size","price","stop_profit_price","stop_loss_price","service_fee","deposit","nickname"])
            ->paginate(10,false,['query'=>request()->param()]);
        return view("index",["arr"=>$query,"sou"=>$sou]);
    }
}
















































